import request from '@/utils/request'

// 查询
export function knowledgeList(query) {
  return request({
    url: '/gene/knowledge/listKnowledge', method: 'get', params: query
  })
}

// 更新缓存
export function updateKnowledge(query) {
  return request({
    url: '/gene/knowledge/updateKnowledge/' + query,
    method: 'get'
  })
}

// 更新缓存
export function updateAll() {
  return request({
    url: '/gene/knowledge/updateAll',
    method: 'get'
  })
}

// 查询
export function knowledgeSuggestedList(query) {
  return request({
    url: '/gene/knowledge/listKnowledgeSuggested', method: 'get', params: query
  })
}

// 查询
export function knowledgeExplainList(query) {
  return request({
    url: '/gene/knowledge/listKnowledgeExplain', method: 'get', params: query
  })
}

// 查询
export function knowledgeIncompatibilityList(query) {
  return request({
    url: '/gene/knowledge/listKnowledgeIncompatibility', method: 'get', params: query
  })
}

// 查询
export function knowledgeInteractionList(query) {
  return request({
    url: '/gene/knowledge/listKnowledgeInteraction', method: 'get', params: query
  })
}

// 查询
export function knowledgeGeneDrugApiList(query) {
  return request({
    url: '/gene-face/drugGeneRs/listGeneDrugApi', method: 'get', params: query
  })
}
